package com.shelpe.services.sinbad.controller;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.shelpe.services.sinbad.controller.dto.BaseDTO;
import com.shelpe.services.sinbad.service.simbaproxy.SimbaProxyBaseDto;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=true)
@JsonInclude(Include.NON_NULL)
public class ListResponse<T> extends BaseDTO{
	private boolean status;
	private int total;
	private int temp;
	private List<T> datas;

	@JsonProperty("online_nums")
	private int onlineNums;
	@JsonProperty("offline_nums")
	private int offlineNums;
	@JsonProperty("adgroup_id")
	private long adgroupID;
	private SimbaProxyBaseDto.Error error;

	@Override
	public void form(SimbaProxyBaseDto.Error error) {
		super.form(error);
	}
	
	
}
